import request from "@/utils/request"

/**
 * 获取推荐文章列表
 */

export const getArticles = (params) => {
    return request({
        method: "GET",
        url: "/app/v1_1/articles",
        params
    })
}

/**
 * 搜索结果
 */
export const getSearchs = (q) => {
    return request({
        method: "GET",
        url: "/app/v1_0/search",
        params: {
            q
        }
    })
}